<?php

$listFile = array(
    "0" => "title.seo",
    "1" => "description.seo",
    "2" => "keywork.seo",
    "3" => "meta.seo",
    "4" => "googleana.seo",
);

foreach ($listFile as $key => $listtext) {

    $filename = str_replace("\\", "/", APPLICATION_PATH) . "/public/seowebsite/" . $listtext;
    if ($key == 0) {
        echo "<title>" . file_get_contents($filename) . "</title>";
    } else if ($key == 1) {
        echo '<meta name="description" content="' . file_get_contents($filename) . '" />';
    } else if ($key == 2) {
        echo '<meta name="keywords" content="' . file_get_contents($filename) . '" />';
    } else {
        echo file_get_contents($filename);
    }
}

